package com.rui.equipment.service.impl;

import com.rui.equipment.entity.Equipment;
import com.rui.equipment.mapper.EquipmentMapper;
import com.rui.equipment.service.EquipmentService;
import com.rui.equipment.vo.EquipmentQuery;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class EquipmentServiceImpl implements EquipmentService {

    @Resource
    private EquipmentMapper equipmentMapper;

    @Override
    public List<Equipment> getEquipmentList(EquipmentQuery param) {
        return equipmentMapper.getEquipmentList(param);
    }

    @Override
    public Long countEquipmentList(EquipmentQuery param) {
        return equipmentMapper.countEquipmentList(param);
    }

    @Override
    public void addEquipment(Equipment equipment) {
        equipmentMapper.addEquipment(equipment);
    }

    @Override
    public void delectEquipmentByIds(String ids) {
        equipmentMapper.delectEquipmentByIds(ids);
    }

    @Override
    public Equipment getEquipmentById(Integer id) {
        return equipmentMapper.getEquipmentById(id) ;
    }

    @Override
    public void updateEquipment(Equipment equipment) {
       equipmentMapper.updateEquipment(equipment);
    }


}
